<template>
  <div class="error-page">
    <div class="error-top">你没有权限访问该页面！</div>
    <div class="error-bot">你的本次访问将被系统记录！！！</div>
    <div class="error-handle">
      <router-link to="/">
        <el-button type="primary" size="large">返回首页</el-button>
      </router-link>
      <el-button class="error-btn" type="primary" size="large" @click="goBack"
        >返回上一页</el-button
      >
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped>
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #f3f3f3;
  box-sizing: border-box;
}
.error-page .error-top {
  font-size: 70px;
  font-weight: bolder;
  line-height: 1;
  color: red;
}
.error-page .error-bot {
  font-size: 30px;
  color: red;
  line-height: 50px;
}
.error-handle {
  margin-top: 30px;
  margin-right: 70px;
  padding-bottom: 200px;
}
.error-btn {
  margin-left: 80px;
}
</style>
